import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * Creat by TanLei
 * Description:
 * User:86183
 * Date:2022-05-13
 * Time:10:53
 */
public class Demo21 {
    public static void main(String[] args) throws InterruptedException {
        BlockingDeque<String> queue = new LinkedBlockingDeque<>();
        queue.put("hello");
        String s = queue.take();
    }
}